import request from '@/utils/request'

export function getActivities(data) {
  return request({
    url: '/active/page',
    method: 'post',
    data
  })
}

export function deleteActivity(data) {
  return request({
    url: '/active/delete',
    method: 'post',
    data
  })
}

export function addActivity(data) {
  return request({
    url: '/active/insert',
    method: 'post',
    data
  })
}

export function updateActivity(data) {
  return request({
    url: '/active/update',
    method: 'post',
    data
  })
}

export function activityDetail(data) {
  return request({
    url: '/active/details',
    method: 'post',
    data
  })
}
